package com.lvy.hczn.front.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lvy.hczn.front.system.domain.system.SysArea;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SysAreaMapper extends BaseMapper<SysArea> {

    /**
     * 获取分页列表
     *
     * @param sysArea
     * @return
     */
    List<SysArea> getPageList(SysArea sysArea);

    /**
     * @param id 子节点ID
     * @description: 根据子节点ID查询所有父节点
     * @author yw
     * @date 2021/4/24 16:43
     * @Return
     */
    List<SysArea> getParentNodesByChildNode(String id);
}
